package com.mk.web.proxy.cglib;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;


/**
 * 代理类
 * Created by WangChen on 2018/11/29 14:18.
 */
public class Secretary implements MethodInterceptor {


    @Override
    public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {
//        method.invoke(obj, args);
        Object result = proxy.invokeSuper(obj, args);
        return result;
    }
}
